package tedu.study.ooday06;

public class StaticFinalDemo {
    public static void main(String[] args) {

        System.out.println(Boo.num);

        //编译器在编译时会将常量直接替换为具体的数值
        //相当于System.out.println(5);
        System.out.println(Boo.COUNT);

    }
}

class Boo{
    public static int num = 5;
    public static final int COUNT = 5;
}


class Aoo{
    public static final double PI = 3.14159;
}